
pkgname=diffutils
pkgver=3.6
pkgrel=1
pkgdesc="Utility programs used for creating patch files"
arch=('x86_64')
url="https://www.gnu.org/software/diffutils"
license=('GPL3')
groups=('base')
depends=('glibc' 'sh')
source=("https://ftp.gnu.org/gnu/diffutils/${pkgname}-${pkgver}.tar.xz")
md5sums=('07cf286672ced26fba54cd0313bdc071')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/usr \
    --with-packager="KaOS" \
    --with-packager-bug-reports="https://github.com/KaOSx/core/issues"
  make
}

check() {
  cd ${pkgname}-${pkgver}

  make check
}

package() {
  cd ${pkgname}-${pkgver}
  
  make DESTDIR=${pkgdir} install
}

